#include "config.hh"

CLICK_DECLS

IGMPRouterConfig::IGMPRouterConfig(int _robustness, int _queryInterval, int _queryResponseInterval, int _lastMemberQueryInterval) 
    :robustness(_robustness)
    ,queryInterval(_queryInterval)
    ,queryResponseInterval(_queryResponseInterval)
    ,lastMemberQueryInterval(_lastMemberQueryInterval)
{
    groupMembershipInterval = (robustness * queryInterval) + queryResponseInterval;
    otherQuerierPresentInterval = (robustness * queryInterval) + (1/2) * queryResponseInterval;
    startupQueryInterval = (1/4) * queryInterval;
    lastMemberQueryCount = robustness;
}

CLICK_ENDDECLS

ELEMENT_REQUIRES(userlevel|ns)
ELEMENT_PROVIDES(IGMPConfig)
